<?php

/*
 * @author Ebrain Cedeno <ebraincedeno@gmail.com>
 */

class user extends ActiveRecord{
    
    public function __construct($name = __CLASS__) {
        parent::__construct($name);
        
        //etiquetas de identificacion de los campos
        
        $this->labels = array("first_name"=>"Nombre",
                            "last_name"=>"Apellido",
                            "e_mail"=>"Correo",
                            "phone"=>"Telefono",
                            "phone_mobile"=>"Celular",
                            "address"=>"Direccion",
                            "login"=>"Usuario",
                            "password"=>"Clave",
                            "id_rol"=>"Rol");
        
        
        $this->rules[] = array('phone'=>'integer');
        $this->rules[] = array('phone_mobile'=>'integer');
        $this->rules[] = array('e_mail'=>'email');
        
    }
    
    public static function model(){
        return new self;
    }
    
}
?>
